package com.mxy.myapplication.pojo;

import java.io.Serializable;

public class DownloadMissionPojo implements Serializable {

    private static final long serialVersionUID = 123456789;


    //任务未开始  这个状态仅使用一次，在任务开始后，只可能是其余四种状态
    public static final int DOWNLOADSTATE_IDLE = 0;
    //任务执行中
    public static final int DOWNLOADSTATE_DOWNLOADING = 1;
    //任务暂停
    public static final int DOWNLOADSTATE_PAUSE = 2;
    //任务完成
    public static final int DOWNLOADSTATE_COMPLETED = 3;
    //任务被取消
    public static final int DOWNLOADSTATE_CNACLED = 4;

    //任务ID  唯一  也作为notificationID使用
    private int missionID;
    //文件url地址
    private String fileUrl = "";
    //下载状态
    private volatile int downloadState = DOWNLOADSTATE_IDLE;
    //下载时速  注意,这个值是每秒估算值  单位字节
    private int downloadSpeed;
    //文件大小    字节
    private int fileSize;
    //已经下载数据量   字节
    private volatile int readSize;
    //文件名称
    private String fileName = "文件名称";
    //文件存在SD卡路径
    private String filePath = "";


    public int getMissionID() {
        return missionID;
    }

    public void setMissionID(int missionID) {
        this.missionID = missionID;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public int getDownloadState() {
        return downloadState;
    }

    public void setDownloadState(int downloadState) {
        this.downloadState = downloadState;
    }

    public int getDownloadSpeed() {
        return downloadSpeed;
    }

    public void setDownloadSpeed(int downloadSpeed) {
        this.downloadSpeed = downloadSpeed;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public int getReadSize() {
        return readSize;
    }

    public void setReadSize(int readSize) {
        this.readSize = readSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}